/*
 * Copyright (c) 2005, 2014 vacoor
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 */
package org.vacoor.nothing.misc.express.usps.api;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;

/**
 * USPS 请求
 *
 * @author vacoor
 */
@XmlAccessorType(XmlAccessType.FIELD)
public abstract class UspsRequest {
    public static final String NO_REVISION = null;

    @XmlAttribute(name = "USERID")
    protected String userId = "";        // required, 用户ID, 申请 USPS 时获得
    @XmlAttribute(name = "PASSWORD")
    protected String password;      // optional, 用户密码
    @XmlElement(name = "Revision")
    protected final String revision;      // 请求版本

    protected UspsRequest(String revision) {
        this.revision = revision;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRevision() {
        return revision;
    }
}
